package com.zst.demo2.service;

import com.zsr.entities.CommonResult;
import com.zsr.entities.RoleDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Service
@FeignClient(value = "zst-service-demo03")
public interface Demo3FeignService {
    @GetMapping(value = "/zst/demo3/get-role/{id}")
    CommonResult<RoleDTO> getRole(@PathVariable("id") Long id);
}
